package com.tools.sqlmaker.factory;

import com.tools.sqlmaker.make.single.MysqlSingleMaker;
import com.tools.sqlmaker.make.single.OracleSingleMaker;
import com.tools.sqlmaker.make.single.SingleMaker;

import java.util.Objects;

import static com.tools.sqlmaker.constant.SysConstant.DATABASE_ORACLE;

/**
 * @author: zhoubin
 * @date: 2023/9/26
 */
public class SqlMakerFactory {

    public static SingleMaker sqlMake(String dataBase) {

        if (Objects.equals(dataBase, DATABASE_ORACLE)) {
            return new OracleSingleMaker();
        }

        return new MysqlSingleMaker();
    }
}
